// 频道加载接口
import request from '@/utils/request'
// 获取用户的频道
export const ownChannels = () => {
    return request({
        url: '/v1_0/user/channels'
    })
}
// 获取所有的频道
export const channels = () => {
    return request({
        url: '/v1_0/channels'
    })
}
// 添加用户频道
export const addChannel = (data) => {

    return request({
        url: '/v1_0/user/channels',
        method: 'patch',
        data
    })
}
// 删除用户频道
export const delChannel = (id) => {

    return request({
        url: '/v1_0/user/channels/' + id,
        method: 'delete',
    })
}